package bytecode.proxy.statics;

public class StaticProxy implements Hello {
    Hello hello;

    public StaticProxy(Hello hello) {
        this.hello = hello;
    }

    public void welcome() {
        System.out.println("static proxy!");
        hello.welcome();
    }


    public static void main(String[] args) {
        Hello hello =new StaticProxy(new BJHello());
        hello.welcome();
    }
}
